Optimal. Leaf size=291 \[ -\frac {b x^{-2 n} (e x)^{2 n} \text {Li}_2\left (-\frac {a e^{d x^n+c}}{b-\sqrt {a^2+b^2}}\right )}{a d^2 e n \sqrt {a^2+b^2}}+\frac {b x^{-2 n} (e x)^{2 n} \text {Li}_2\left (-\frac {a e^{d x^n+c}}{b+\sqrt {a^2+b^2}}\right )}{a d^2 e n \sqrt {a^2+b^2}}-\frac {b x^{-n} (e x)^{2 n} \log \left (\frac {a e^{c+d x^n}}{b-\sqrt {a^2+b^2}}+1\right )}{a d e n \sqrt {a^2+b^2}}+\frac {b x^{-n} (e x)^{2 n} \log \left (\frac {a e^{c+d x^n}}{\sqrt {a^2+b^2}+b}+1\right )}{a d e n \sqrt {a^2+b^2}}+\frac {(e x)^{2 n}}{2 a e n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.55, antiderivative size = 291, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 8, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {5441, 5437, 4191, 3322, 2264, 2190, 2279, 2391} \[ -\frac {b x^{-2 n} (e x)^{2 n} \text {PolyLog}\left (2,-\frac {a e^{c+d x^n}}{b-\sqrt {a^2+b^2}}\right )}{a d^2 e n \sqrt {a^2+b^2}}+\frac {b x^{-2 n} (e x)^{2 n} \text {PolyLog}\left (2,-\frac {a e^{c+d x^n}}{\sqrt {a^2+b^2}+b}\right )}{a d^2 e n \sqrt {a^2+b^2}}-\frac {b x^{-n} (e x)^{2 n} \log \left (\frac {a e^{c+d x^n}}{b-\sqrt {a^2+b^2}}+1\right )}{a d e n \sqrt {a^2+b^2}}+\frac {b x^{-n} (e x)^{2 n} \log \left (\frac {a e^{c+d x^n}}{\sqrt {a^2+b^2}+b}+1\right )}{a d e n \sqrt {a^2+b^2}}+\frac {(e x)^{2 n}}{2 a e n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2190
Rule 2264
Rule 2279
Rule 2391
Rule 3322
Rule 4191
Rule 5437
Rule 5441
Rubi steps
\begin {align*} \int \frac {(e x)^{-1+2 n}}{a+b \text {csch}\left (c+d x^n\right )} \, dx &=\frac {\left (x^{-2 n} (e x)^{2 n}\right ) \int \frac {x^{-1+2 n}}{a+b \text {csch}\left (c+d x^n\right )} \, dx}{e}\\ &=\frac {\left (x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \frac {x}{a+b \text {csch}(c+d x)} \, dx,x,x^n\right )}{e n}\\ &=\frac {\left (x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \left (\frac {x}{a}-\frac {b x}{a (b+a \sinh (c+d x))}\right ) \, dx,x,x^n\right )}{e n}\\ &=\frac {(e x)^{2 n}}{2 a e n}-\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \frac {x}{b+a \sinh (c+d x)} \, dx,x,x^n\right )}{a e n}\\ &=\frac {(e x)^{2 n}}{2 a e n}-\frac {\left (2 b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \frac {e^{c+d x} x}{-a+2 b e^{c+d x}+a e^{2 (c+d x)}} \, dx,x,x^n\right )}{a e n}\\ &=\frac {(e x)^{2 n}}{2 a e n}-\frac {\left (2 b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \frac {e^{c+d x} x}{2 b-2 \sqrt {a^2+b^2}+2 a e^{c+d x}} \, dx,x,x^n\right )}{\sqrt {a^2+b^2} e n}+\frac {\left (2 b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \frac {e^{c+d x} x}{2 b+2 \sqrt {a^2+b^2}+2 a e^{c+d x}} \, dx,x,x^n\right )}{\sqrt {a^2+b^2} e n}\\ &=\frac {(e x)^{2 n}}{2 a e n}-\frac {b x^{-n} (e x)^{2 n} \log \left (1+\frac {a e^{c+d x^n}}{b-\sqrt {a^2+b^2}}\right )}{a \sqrt {a^2+b^2} d e n}+\frac {b x^{-n} (e x)^{2 n} \log \left (1+\frac {a e^{c+d x^n}}{b+\sqrt {a^2+b^2}}\right )}{a \sqrt {a^2+b^2} d e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \log \left (1+\frac {2 a e^{c+d x}}{2 b-2 \sqrt {a^2+b^2}}\right ) \, dx,x,x^n\right )}{a \sqrt {a^2+b^2} d e n}-\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \log \left (1+\frac {2 a e^{c+d x}}{2 b+2 \sqrt {a^2+b^2}}\right ) \, dx,x,x^n\right )}{a \sqrt {a^2+b^2} d e n}\\ &=\frac {(e x)^{2 n}}{2 a e n}-\frac {b x^{-n} (e x)^{2 n} \log \left (1+\frac {a e^{c+d x^n}}{b-\sqrt {a^2+b^2}}\right )}{a \sqrt {a^2+b^2} d e n}+\frac {b x^{-n} (e x)^{2 n} \log \left (1+\frac {a e^{c+d x^n}}{b+\sqrt {a^2+b^2}}\right )}{a \sqrt {a^2+b^2} d e n}+\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 a x}{2 b-2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x^n}\right )}{a \sqrt {a^2+b^2} d^2 e n}-\frac {\left (b x^{-2 n} (e x)^{2 n}\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 a x}{2 b+2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x^n}\right )}{a \sqrt {a^2+b^2} d^2 e n}\\ &=\frac {(e x)^{2 n}}{2 a e n}-\frac {b x^{-n} (e x)^{2 n} \log \left (1+\frac {a e^{c+d x^n}}{b-\sqrt {a^2+b^2}}\right )}{a \sqrt {a^2+b^2} d e n}+\frac {b x^{-n} (e x)^{2 n} \log \left (1+\frac {a e^{c+d x^n}}{b+\sqrt {a^2+b^2}}\right )}{a \sqrt {a^2+b^2} d e n}-\frac {b x^{-2 n} (e x)^{2 n} \text {Li}_2\left (-\frac {a e^{c+d x^n}}{b-\sqrt {a^2+b^2}}\right )}{a \sqrt {a^2+b^2} d^2 e n}+\frac {b x^{-2 n} (e x)^{2 n} \text {Li}_2\left (-\frac {a e^{c+d x^n}}{b+\sqrt {a^2+b^2}}\right )}{a \sqrt {a^2+b^2} d^2 e n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 4.52, size = 1181, normalized size = 4.06 \[ \frac {(e x)^{2 n} \text {csch}\left (d x^n+c\right ) \left (1-\frac {2 b x^{-2 n} \left (-\frac {i \pi \tanh ^{-1}\left (\frac {b \tanh \left (\frac {1}{2} \left (d x^n+c\right )\right )-a}{\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2}}-\frac {2 \left (c+i \cos ^{-1}\left (-\frac {i b}{a}\right )\right ) \tan ^{-1}\left (\frac {(a-i b) \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )}{\sqrt {-a^2-b^2}}\right )+\left (-2 i d x^n-2 i c+\pi \right ) \tanh ^{-1}\left (\frac {(b-i a) \tan \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )}{\sqrt {-a^2-b^2}}\right )-\left (\cos ^{-1}\left (-\frac {i b}{a}\right )-2 \tan ^{-1}\left (\frac {(a-i b) \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )}{\sqrt {-a^2-b^2}}\right )\right ) \log \left (\frac {(a+i b) \left (a-i b+\sqrt {-a^2-b^2}\right ) \left (i \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )+1\right )}{a \left (a+i b+i \sqrt {-a^2-b^2} \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )\right )}\right )-\left (\cos ^{-1}\left (-\frac {i b}{a}\right )+2 \tan ^{-1}\left (\frac {(a-i b) \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )}{\sqrt {-a^2-b^2}}\right )\right ) \log \left (\frac {i (a+i b) \left (-a+i b+\sqrt {-a^2-b^2}\right ) \left (\cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )+i\right )}{a \left (a+i b+i \sqrt {-a^2-b^2} \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )\right )}\right )+\left (\cos ^{-1}\left (-\frac {i b}{a}\right )+2 \tan ^{-1}\left (\frac {(a-i b) \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )}{\sqrt {-a^2-b^2}}\right )-2 i \tanh ^{-1}\left (\frac {(b-i a) \tan \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )}{\sqrt {-a^2-b^2}}\right )\right ) \log \left (-\frac {(-1)^{3/4} \sqrt {-a^2-b^2} e^{-\frac {d x^n}{2}-\frac {c}{2}}}{\sqrt {2} \sqrt {-i a} \sqrt {b+a \sinh \left (d x^n+c\right )}}\right )+\left (\cos ^{-1}\left (-\frac {i b}{a}\right )-2 \tan ^{-1}\left (\frac {(a-i b) \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )}{\sqrt {-a^2-b^2}}\right )+2 i \tanh ^{-1}\left (\frac {(b-i a) \tan \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )}{\sqrt {-a^2-b^2}}\right )\right ) \log \left (\frac {\sqrt [4]{-1} \sqrt {-a^2-b^2} e^{\frac {1}{2} \left (d x^n+c\right )}}{\sqrt {2} \sqrt {-i a} \sqrt {b+a \sinh \left (d x^n+c\right )}}\right )+i \left (\text {Li}_2\left (\frac {\left (i b+\sqrt {-a^2-b^2}\right ) \left (a+i b-i \sqrt {-a^2-b^2} \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )\right )}{a \left (a+i b+i \sqrt {-a^2-b^2} \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )\right )}\right )-\text {Li}_2\left (\frac {\left (b+i \sqrt {-a^2-b^2}\right ) \left (i a-b+\sqrt {-a^2-b^2} \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )\right )}{a \left (a+i b+i \sqrt {-a^2-b^2} \cot \left (\frac {1}{4} \left (2 i d x^n+2 i c+\pi \right )\right )\right )}\right )\right )}{\sqrt {-a^2-b^2}}\right )}{d^2}\right ) \left (b+a \sinh \left (d x^n+c\right )\right )}{2 a e n \left (a+b \text {csch}\left (d x^n+c\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.49, size = 1183, normalized size = 4.07 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (e x\right )^{2 \, n - 1}}{b \operatorname {csch}\left (d x^{n} + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.79, size = 577, normalized size = 1.98 \[ \frac {x \,{\mathrm e}^{\frac {\left (-1+2 n \right ) \left (-i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )+i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}+i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}-i \pi \mathrm {csgn}\left (i e x \right )^{3}+2 \ln \relax (x )+2 \ln \relax (e )\right )}{2}}}{2 a n}-\frac {2 b \,{\mathrm e}^{-i \pi n \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )} {\mathrm e}^{i \pi n \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}} {\mathrm e}^{i \pi n \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}} {\mathrm e}^{-i \pi n \mathrm {csgn}\left (i e x \right )^{3}} {\mathrm e}^{\frac {i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )}{2}} {\mathrm e}^{-\frac {i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}}{2}} {\mathrm e}^{-\frac {i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}}{2}} {\mathrm e}^{\frac {i \pi \mathrm {csgn}\left (i e x \right )^{3}}{2}} e^{2 n} {\mathrm e}^{c} \left (\frac {x^{n} d \left (\ln \left (\frac {a \,{\mathrm e}^{2 c +d \,x^{n}}+{\mathrm e}^{c} b -\sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}{{\mathrm e}^{c} b -\sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}\right )-\ln \left (\frac {a \,{\mathrm e}^{2 c +d \,x^{n}}+{\mathrm e}^{c} b +\sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}{{\mathrm e}^{c} b +\sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}\right )\right )}{2 \sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}+\frac {\dilog \left (\frac {a \,{\mathrm e}^{2 c +d \,x^{n}}+{\mathrm e}^{c} b -\sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}{{\mathrm e}^{c} b -\sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}\right )-\dilog \left (\frac {a \,{\mathrm e}^{2 c +d \,x^{n}}+{\mathrm e}^{c} b +\sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}{{\mathrm e}^{c} b +\sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}\right )}{2 \sqrt {b^{2} {\mathrm e}^{2 c}+a^{2} {\mathrm e}^{2 c}}}\right )}{a e n \,d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -2 \, b e^{2 \, n} \int \frac {e^{\left (d x^{n} + 2 \, n \log \relax (x) + c\right )}}{a^{2} e x e^{\left (2 \, d x^{n} + 2 \, c\right )} + 2 \, a b e x e^{\left (d x^{n} + c\right )} - a^{2} e x}\,{d x} + \frac {e^{2 \, n - 1} x^{2 \, n}}{2 \, a n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (e\,x\right )}^{2\,n-1}}{a+\frac {b}{\mathrm {sinh}\left (c+d\,x^n\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (e x\right )^{2 n - 1}}{a + b \operatorname {csch}{\left (c + d x^{n} \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________